.class public Sample_scarlett_test2
.super scarlett/ScarlettRuntime
; standard initializer
.method public <init>()V
   aload_0
   invokenonvirtual scarlett/ScarlettRuntime/<init>()V
   return
 .end method
.method public static main([Ljava/lang/String;)V
    .limit stack 16
    .limit locals 2
    new Sample_scarlett_test2
    dup
    invokenonvirtual Sample_scarlett_test2/<init>()V
    aload_0
    invokenonvirtual Sample_scarlett_test2/ScarlettMain([Ljava/lang/String;)V
	return
.end method

.method public  run([Ljava/lang/String;)V
.var 2 is flowers Ljava/lang/String;
.var 3 is poem Ljava/lang/String;
.var 1 is wherethesidewalkends Ljava/lang/String;
    aconst_null
    astore 2
    aconst_null
    astore 3
    aconst_null
    astore 1

	aload_0 ; This ptr for Show command
	ldc "hi my name is scarlett and i like shel silverstein" ; stringConstant
	invokevirtual scarlett/ScarlettRuntime/Show(Ljava/lang/Object;)V
	ldc "There is a place where the sidewalk ends And before the street begins And there the grass grows soft and white And there the sun burns crimson bright And there the moon-bird rests from his flight To cool in the peppermint wind Let us leave this place where the smoke blows black And the dark street winds and bends Past the pits where the asphalt flowers grow We shall walk with a walk that is measured and slow And watch where the chalk-white arrows go To the place where the sidewalk ends Yes well walk with a walk that is measured and slow And well go where the chalk-white arrows go For the children, they mark, and the children they know The place where the sidewalk ends " ; stringConstant
	astore 1
	aload_0 ; This ptr for Show command
	ldc "i am about to write to some files too\n \n" ; stringConstant
	invokevirtual scarlett/ScarlettRuntime/Show(Ljava/lang/Object;)V
	ldc "flowers" ; stringConstant
	astore 2
	ldc "And the dark street winds and bends" ; stringConstant
	astore 3
	aload_0
	aload 1 ;load variable wherethesidewalkends
	aload 3 ;load variable poem
	invokevirtual scarlett/ScarlettRuntime/Contains(Ljava/lang/Object;Ljava/lang/Object;)Z
	ifeq L001
	aload_0 ; This ptr for Show command
	ldc "this is the poem i like - " ; stringConstant
	invokevirtual scarlett/ScarlettRuntime/Show(Ljava/lang/Object;)V
	aload_0 ; This ptr for Show command
	ldc "\n" ; stringConstant
	invokevirtual scarlett/ScarlettRuntime/Show(Ljava/lang/Object;)V
	aload_0 ; This ptr for Show command
	aload 1 ;load variable wherethesidewalkends
	invokevirtual scarlett/ScarlettRuntime/Show(Ljava/lang/Object;)V
	goto L000
L001:
	aload_0 ; This ptr for Show command
	ldc "this is a fake" ; stringConstant
	invokevirtual scarlett/ScarlettRuntime/Show(Ljava/lang/Object;)V
L000:
	aload_0
	aload 1 ;load variable wherethesidewalkends
	aload 2 ;load variable flowers
	invokevirtual scarlett/ScarlettRuntime/Contains(Ljava/lang/Object;Ljava/lang/Object;)Z
	ifeq L003
	; fileUri
	; source
	aload_0 ; this pointer for uri
	ldc "file:///C:/poem.txt" ; fileuri
	aload 1 ;load variable wherethesidewalkends
	invokevirtual scarlett/ScarlettRuntime/appendToFile(Ljava/lang/Object;Ljava/lang/Object;)Z
	goto L002
L003:
	; fileUri
	; source
	aload_0 ; this pointer for uri
	ldc "file:///C:/flowers.txt" ; fileuri
	ldc "scarlett roses" ; stringConstant
	invokevirtual scarlett/ScarlettRuntime/appendToFile(Ljava/lang/Object;Ljava/lang/Object;)Z
L002:
    return

.limit locals 8
.limit stack  16
.end method
